#pragma once
#include <iostream>
#include "Sock.h"

namespace Sock
{
    class  SNETWORK_API Cookie
    {
    public:
        static Cookie *instance();
	    Cookie();
        bool SetCookie(std::string name);
        bool SetCookie(std::string name, std::string value);
        bool SetCookie(std::string name, std::string value, int expire);
        
    private:    
        static Cookie* m_instance;    
        class CGarbo {public: ~CGarbo(){if (Cookie::m_instance) delete Cookie::m_instance;}};
        static CGarbo Garbo;	
    };
}
